<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/22
  Time: 19:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <!-- 包含公共的JSP代码片段 -->

    <title>餐馆王平台</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="../style/js/jquery.js"></script>
    <script type="text/javascript" src="../style/js/page_common.js"></script>
    <link href="../style/css/common_style_blue.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="../style/css/index_1.css" />
</head>
<body>
<!-- 页面标题 -->
<div id="TitleArea">
    <div id="TitleArea_Head"></div>
    <div id="TitleArea_Title">
        <div id="TitleArea_Title_Content">
            <img border="0" width="13" height="13"
                 src="../style/images/title_arrow.gif" /> 菜系列表
        </div>
    </div>
    <div id="TitleArea_End"></div>
</div>
<!-- 过滤条件 -->
<div id="QueryArea">
    <form action="${pageContext.request.contextPath}/hotel/foodType" method="get">
        <input type="hidden" name="method" value="search">
        &nbsp;&nbsp;菜系名称: <input type="text" required name="keyword" placeholder="请输入菜系名称" title="请输入菜系名称">
        <input type="submit" value="搜索">
    </form>
</div>

<!-- 主内容区域（数据列表或表单显示） -->
<div id="MainArea">
    <table class="MainArea_Content" align="center" cellspacing="0" cellpadding="0">
        <!-- 表头-->
        <thead>
        <tr align="center" valign="middle" id="TableTitle">
            <td>菜系编号</td>
            <td>菜系名称</td>
            <td>操作</td>
        </tr>
        </thead>
        <!--显示数据列表 -->
        <tbody id="TableData" align="center">
        <c:forEach items="${foodTypes}" var="foodType" varStatus="status">
            <tr>
                <td>${status.count}</td>
                <td>${foodType.name}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/hotel/foodType?method=beforeUpdate&id=${foodType.id}" class="FunctionButton">更新</a>
                    <a href="${pageContext.request.contextPath}/hotel/foodType?method=delete&id=${foodType.id}" class="FunctionButton">删除</a>
                </td>
            </tr>
        </c:forEach>



        </tbody>
    </table>
    <!-- 其他功能超链接 -->
    <div id="TableTail" align="center">
        <div class="FunctionButton">
            <a href="foodTypeSave.jsp">添加</a>
        </div>
    </div>
</div>
</body>
</html>
